package com.mumulx.check.web.config;

import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/*
 *  Created by IntelliJ IDEA.
 *  User: 木木
 *  Date: 2020/11/1
 *  Time: 15:29
 * 全局配置类
 */
@Component
@ConfigurationProperties(prefix = "checkpart")
@ToString
public class Global {
    //名称
    private static String name;
    //版本
    private static String version;
    // 版权年份
    private static String copyrightYear;
    //图片文件在本地的映射路径 FileConfig类中使用
    private static String  profileImg;
    //swagger开关
    private static boolean swagger2Enable;
    //fastdfs文件系统地址
    private static String fastdfsHost;

    public static boolean isSwagger2Enable() {
        return swagger2Enable;
    }

    public static String getFastdfsHost() {
        return fastdfsHost;
    }

    public void setFastdfsHost(String fastdfsHost) {
        this.fastdfsHost = fastdfsHost;
    }

    public static String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public static String getCopyrightYear() {
        return copyrightYear;
    }

    public void setCopyrightYear(String copyrightYear) {
        this.copyrightYear = copyrightYear;
    }

    public static String getProfileImg() {
        return profileImg;
    }

    public void setProfileImg(String profileImg) {
        this.profileImg = profileImg;
    }

    public static boolean getSwagger2Enable() {
        return swagger2Enable;
    }

    public void setSwagger2Enable(boolean swagger2Enable) {
        this.swagger2Enable = swagger2Enable;
    }
}
